/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of Boventech Corp. 
 * 
 * $Rev: 12 $
 * $Author: wei.qiu $
 * $LastChangedDate: 2011-12-09 16:14:46 +0800 (周五, 2011-12-09) $
 *
 */

package com.allbluefish.learn.model;

import java.util.List;

import com.google.common.base.Strings;
import com.google.common.collect.Lists;

public class AncientBook {
    
    private String id;

    // 题名
    private String bookName;

    // 责任者
    private List<String> authors = Lists.newArrayList();;

    // 版本信息相关
    private String version;

    // 四部分类
    private String category;

    // 其他题名
    private List<String> otherBookNames = Lists.newArrayList();

    // 载体形态(函册)
    private String carrierShape;

    // 主题
    private String theme;

    // 附注
    private String appendix;

    // 项目名称
    private String appName;

    // 索书号
    private String indexNumber;

    // 行款版式
    private String frame;

    // 详细链接
    private String detailedLink;

    // 来源
    private String source;

    // 书影
    private List<String> bookImages= Lists.newArrayList();
    
    @Override
    public String toString() {
        String authorsStr="";String otherBookNamesStr="";
        for(String str:this.getAuthors()){
            authorsStr=authorsStr+str;
        }
        for(String str:this.getOtherBookNames()){
            otherBookNamesStr=otherBookNamesStr+str;
        }
        return "题名："+bookName+"    "+"著者："+authorsStr+"     "+"其他题名："+otherBookNamesStr+"    "
        +"版本信息："+version+"     "+"载体形态："+carrierShape+"     "+"主题："+Strings.nullToEmpty(theme)+"    "+"附注："+appendix;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public List<String> getAuthors() {
        return authors;
    }

    public void setAuthors(List<String> authors) {
        this.authors = authors;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public List<String> getOtherBookNames() {
        return otherBookNames;
    }

    public void setOtherBookNames(List<String> otherBookNames) {
        this.otherBookNames = otherBookNames;
    }

    public String getCarrierShape() {
        return carrierShape;
    }

    public void setCarrierShape(String carrierShape) {
        this.carrierShape = carrierShape;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getAppendix() {
        return appendix;
    }

    public void setAppendix(String appendix) {
        this.appendix = appendix;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getIndexNumber() {
        return indexNumber;
    }

    public void setIndexNumber(String indexNumber) {
        this.indexNumber = indexNumber;
    }

    public String getFrame() {
        return frame;
    }

    public void setFrame(String frame) {
        this.frame = frame;
    }

    public String getDetailedLink() {
        return detailedLink;
    }

    public void setDetailedLink(String detailedLink) {
        this.detailedLink = detailedLink;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public List<String> getBookImages() {
        return bookImages;
    }

    public void setBookImages(List<String> bookImages) {
        this.bookImages = bookImages;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
    

}
